<?php 
global $current_user ;
get_currentuserinfo();

  $args=array(
    'author' => $current_user->ID,
    'post_type' => 'post',
    'post_status' => 'publish, private',
    'posts_per_page' => -1,
    'caller_get_posts'=> 1
  );
  $my_query = null;
  $my_query = new WP_Query($args);
  $user_post_count = count_user_posts( $current_user->ID);
  if (  $user_post_count<1){ ?>
  </br></br>
  <h9>Kamu belum membuat cerita apa pun </h9>
  </br></br>
  Mulailah membuat cerita baru, dan sebarkan ceritamu.
  <?php
  }
  else{
  if( $my_query->have_posts() ) {
   
    while ($my_query->have_posts()) : $my_query->the_post(); ?>
     
<div class="row">
                            <div class="col-md-2"><img src="img/Koala.jpg"  class="img-thumbnail fotoprofil"></div>
                            <div class="col-md-9 maxsize">
                                <table style="width:100%">
                                <tr>
                                <td style="width:85%">
                                <h8>
                                    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                                </h8>
                                <br/>
                                <!--<span class="glyphicon glyphicon glyphicon-time"></span><a class="font2">&nbsp;May 6th, 2014&nbsp;&nbsp;</a>-->
                                <span class="glyphicon glyphicon glyphicon-tags"></span><a class="font2">&nbsp;Tutorial, Web Design&nbsp;&nbsp;</a>
                                <span class="glyphicon glyphicon glyphicon glyphicon glyphicon-heart-empty"></span><a class="font2">&nbsp;10 Likes&nbsp;&nbsp;</a>
                                <span class="glyphicon glyphicon glyphicon glyphicon-comment"></span><a class="font2">&nbsp;13 Comments</a>
                                <div>
                                	<span class="glyphicon glyphicon glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon glyphicon glyphicon-star-empty"></span>
                                    <span class="glyphicon glyphicon glyphicon glyphicon-star-empty"></span>
                                </div>
                                </td>
                                <td>
                                	<div class="tgl">
                                	<table style="font-size: 10px; color: #FFF;text-align: center;font-weight: normal;width: 250px;height: 50px;" >
                                        <tr>
                                            <td>create</td>
                                            <td>:</td>
                                            <td><p><?php the_time("l, d F Y");?>  <?php the_time("g:i a"); ?></p></td>
                                        </tr>
                                        <tr>
                                            <td>update</td>
                                            <td>:</td>
                                            <td><?php the_modified_time('l, d F Y'); ?>  <?php the_modified_time("g:i a"); ?></td>
                                        </tr>
                                    </table>
                                    </div>
                                </td>
                                </tr>
                                </table>
                                <hr/>
                                <p>
                                    <?php the_excerpt();?>
                                </p>
                                <p>
                                	<a class="btn" href="tulis cerita.html">Edit</a>
                                    <a class="btn" href="cerita.html">Selengkapnya »</a>
                                </p>
                            </div>
                        </div>
						 
      <?php
    endwhile;
  }}
  wp_reset_query();  // Restore global post data stomped by the_post().

?>